﻿using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Autorent.Desktop.Model.Services;
using Autorent.Desktop.Modules.Clients.Services;

namespace Autorent.Desktop.Modules.Clients
{
    /// <summary>
    /// The module contains work with clients. Create, Update, Delete and Search.
    /// </summary>
    public class ClientsModule : IModule
    {
        private readonly IUnityContainer _container;

        public ClientsModule(IUnityContainer container)
        {
            _container = container;
        }

        public void Initialize()
        {
            _container.RegisterType(typeof(IClientsRepository), typeof(ClientsRepository));
        }
    }
}
